#ifndef __DOWN_AND_UP__
#define __DOWN_AND_UP__
#include <my_header.h>
#include <openssl/sha.h>
typedef struct trains_s{
      int length;
      char hash[65];
      char data[1024];
}trains_t;


int putsfunc(int sockfd, const char *filename);

int getsfunc(int sockfd, const char *filename);
void sha256_file(const char *filename, char *output_hash);
//int db_init(const char *db_path);
#endif

